﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Navigation;

namespace DemoDataGridToolBar.Views
{
  public partial class OData_dir_editWait : Page
  {
    public OData_dir_editWait()
    {
      InitializeComponent();
    }

    private void DataGridToolBarRIA_CreateDataForm(object sender, DataFormEventArgs e)
    {
      e.DataForm = new ProductFormOData_dir();
    }

    private void WaitControl_Cancel(object sender, RoutedEventArgs e)
    {
      if(dsProducts.IsLoading) dsProducts.CancelLoading();
      else if(dsProducts.IsSubmitting) dsProducts.CancelSubmitting();
    }

  }
}
